package com.geek.water.dto;

import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;

import java.util.List;

/**
 * @author yangwenqi
 * @decs TODO
 * @date 2025/8/3
 */
@Data
@JsonInclude(JsonInclude.Include.NON_NULL)
public class InvoiceResponseDTO {
    private String code;
    private String message;
    private InvoiceDataDTO data;

    @Data
    public static class InvoiceDataDTO {
        private String invoiceCode;
        private String invoiceNumber;
        private String checkCode;
        private String machineCode;
        private String invoiceDate;
        private String status;
        private String imgUrls;
        private String totalAmount;
        private String taxAmount;
        private String buyerName;
        private String buyerTaxNum;
        private List<InvoiceDetailDTO> invoiceDetail;
    }

    @Data
    public static class InvoiceDetailDTO {
        private String goodsName;
        private String specType;
        private String unit;
        private String num;
        private String price;
        private String amount;
        private String taxRate;
        private String tax;
    }
}
